package com.bwie.miaosha.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author HouDing
 * @email 1398853436@qq.com
 * @date 2022-02-22 19:44:02
 */
@Data
@TableName("miaosha_activity")
public class ActivityEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀商品表主键
	 */
	@TableId
	private Long id;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 秒杀价
	 */
	private BigDecimal miaoshaPrice;
	/**
	 * 库存数量
	 */
	private Integer stockCount;
	/**
	 * 秒杀开始时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date startDate;
	/**
	 * 秒杀结束时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date endDate;

}
